c# remove invalid directory characters

61

c# remove invalid directory characters -

public string ReplaceInvalidChars(string filename)
{
    return string.Join("_", filename.Split(Path.GetInvalidFileNameChars()));    
}

Comments

Submit
0 Comments